var ns, app;
app = new Vue({
    el: '#app',
    data:{

        UserName:'',
        typeList:[
            // {id:2,title:'优惠减免',type:2,msgdec:1},
            {id:3,title:'采购申请',type:1,msgdec:'物品采购提前申请'},
            {id:4,title:'用印申请',type:19,msgdec:'印章、公章、法人证件使用申请'},
            {id:5,title:'通用申请',type:18,msgdec:'基本审核申请'},
        ],

    },
    methods:{
        do_open_add: function(type) {
            var that=this;
            //采购申请
            if(type==1){
                ns.openWin('purchase_add', '采购申请');
            }else if(type==19){
                ns.openWin('seal_add', '用印申请');
            }else if(type==18){
                ns.openWin('common_add', '通用申请');
            }
        },
    },
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    api.addEventListener({
        name:'purchase_updata'
    }, function(ret){
        api.closeWin();
    })
};